import type { IQuery, TableResponse } from '@/api/config/types';
import axios from 'axios';

export interface MediaQueue {
  queueId: string;
  mediaId: string;
  resolutionId: string;
  goodsId: string;
  goodsName: string;
  barCode: string;
  retailPrice: null;
  memberPrice: null;
  salePrice: null;
  sendTime: string;
  doneTime: null;
  retryTimes: null;
  status: string;
  triggerType: string;
  deptId: string;
  nlast: number;
}

export const mediaQueue = (query?: IQuery) => {
  return axios.get<TableResponse<MediaQueue>>(`/media/queue/list`, {
    params: query,
  });
};
